/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.lsp.obey.service.internal;

import za.ac.cput.lsp.obey.service.Calculator;

/**
 *
 * @author Jameel
 */
public class CalculatorImpl implements Calculator {
    private int number1;
    private int number2;
    private int ans;

    @Override
    public int add(int num1, int num2) {
        return ans = (num1 + num2);
    }

    @Override
    public int subtract(int num1, int num2) {
        return ans = (num1 - num2);
    }

    @Override
    public int getNumber1() {
         return number1;
    }

    @Override
    public void setNumber1(int number1) {
        this.number1 = number1;
    }

    @Override
    public int getNumber2() {
        return number2;
    }

    @Override
    public void setNumber2(int number2) {
        this.number2 = number2;
    }  
}
